//
//  SwipScrollView.m
//  OSClient
//
//  Created by Chaosky on 15/10/20.
//  Copyright © 2015年 1000phone. All rights reserved.
//



#import "SwipScrollView.h"

@implementation SwipScrollView
{
    NSArray * _viewControllers; // 视图控制器数组
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
// 初始化方法
- (instancetype)initWithFrame:(CGRect)frame viewControllers:(NSArray *)viewControllers
{
    if (self = [super initWithFrame:frame]) {
        // 拷贝数组
        _viewControllers = [NSArray arrayWithArray:viewControllers];
        [self setupUI];
    }
    return self;
}

// 创建UI
- (void)setupUI
{
    // 循环遍历数组
    [_viewControllers enumerateObjectsUsingBlock:^(UIViewController * obj, NSUInteger idx, BOOL * stop) {
        // 获取视图控制器上的UIView
        CGRect vcRect = obj.view.frame;
        
    }];
}


@end
